import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class HelloWorldMIDlet
    extends MIDlet
{

    public HelloWorldMIDlet()
    {
    }

    // Sets the MIDlet's current Display to a HelloScreen object.
    public void startApp()
    {
        Displayable current = Display.getDisplay(this).getCurrent();
        if(current == null)
        {
            HelloScreen helloScreen = new HelloScreen(this, "Hello, world!");
            Display.getDisplay(this).setCurrent(helloScreen);
        }
    }

    public void pauseApp()
    {
    }

    public void destroyApp(boolean unconditional)
    {
    }

}